<template>
  <div class="review-timeline">
    <div v-for="(step, index) in steps" 
         :key="index" 
         :class="['step', { active: step.active }]">
      <div class="step-icon">
        <deepin-icon v-if="step.passed" name="check-circle" color="#52c41a"/>
        <deepin-icon v-else-if="step.failed" name="close-circle" color="#f5222d"/>
        <span v-else>{{ index + 1 }}</span>
      </div>
      <div class="step-info">
        <h4>{{ step.title }}</h4>
        <p class="desc">{{ step.description }}</p>
        <time class="time">{{ step.time }}</time>
      </div>
    </div>
  </div>
</template>

<style scoped>
.review-timeline {
  max-width: 680px;
  margin: 0 auto;
}

.step-icon {
  width: 32px;
  height: 32px;
  border: 2px solid #1890ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active .step-icon {
  background: #1890ff;
  color: white;
}
</style>